package com.luo.mapper;

import com.luo.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    List<Role> selectRoleList(@Param("roleName") String roleName,
                                          @Param("roleLevel") String roleLevel,
                                          @Param("index") int index,
                                          @Param("limit") int limit);
    int selectRoleCount(@Param("roleName") String roleName,
                              @Param("roleLevel") String roleLevel);
    void insert(Role role);
    void delete(Integer id);
    void update(Role role);
    List<Role> selectRoleNames();
}
